package com.nf.entity;

import java.math.BigDecimal;

public class EmpEntity {
    private Integer id;
    private String empName;
    private String gender;
    private BigDecimal salary;
    private Integer deptId;

    public EmpEntity() {
    }

    public EmpEntity(Integer id, String empName, String gender, BigDecimal salary, Integer deptId) {
        this.id = id;
        this.empName = empName;
        this.gender = gender;
        this.salary = salary;
        this.deptId = deptId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "EmpEntity{" +
                "id=" + id +
                ", empName='" + empName + '\'' +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                ", deptId=" + deptId +
                '}';
    }
}
